﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace BD_projekt
{
    public partial class Form1 : Form
    {
        public MicroarraysDataSet set;

        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            set = DBOperations.FillDataSet();
            if (set != null)
            {
                dataGridView1.DataSource = set.MicroarrayVersion;
            }
        }

        private void startToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormEditMicroarray form = new FormEditMicroarray(set, Miscellaneous.EditType.NEW_VERSION, 1);
            form.Show();
        }
    }
}
